QT       += core gui
# build sucess on Qt6.7.1, Android SDK34

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

include(opencv.pri)

SOURCES += \
    browsingcontours.cpp \
    findcontours.cpp \
    fun.cpp \
    main.cpp \
    mainedit.cpp \
    mainwindow.cpp \
    mainwindow_permission.cpp \
    qtimshow.cpp \
    tabwin1.cpp

HEADERS += \
    mainedit.h \
    mainwindow.h \
    qtimshow.h \
    tabwin1.h

FORMS += \
    mainwindow.ui \
    qtimshow.ui \
    tabwin1.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

contains(ANDROID_TARGET_ARCH,armeabi-v7a) {
    ANDROID_PACKAGE_SOURCE_DIR = \
        $$PWD/android
}

DISTFILES += \
    android/AndroidManifest.xml \
    android/build.gradle \
    android/gradle.properties \
    android/gradle/wrapper/gradle-wrapper.jar \
    android/gradle/wrapper/gradle-wrapper.properties \
    android/gradlew \
    android/gradlew.bat \
    android/res/values/libs.xml \
    android/res/xml/qtprovider_paths.xml \
    android/src/org/qtproject/QtAndroid.java
